﻿<?xml version="1.0" encoding="utf-8" ?>
<objects xmlns="http://www.springframework.net" default-lazy-init="true">
  <description>Deletes a file first then creates it</description>

  <object id="MacroToProcess" type="Macro" >
    <constructor-arg name="templateId" value="1C420345-0A41-4f65-87C6-1B62E84DF535"/>
    <constructor-arg name="actionNames">
      <list element-type="string">
        <value>CalculatorAction</value>        
      </list>
    </constructor-arg>
  </object>

  <object id="CalculatorAction" lazy-init="true" type="Collaboris.Saf.Tests.Support.Actions.CalculatorAction, Collaboris.Saf.Tests">
    <property name="EntityList" ref="Calculations"/>
    <property name="FinalResult" value="@{Result3}"/>
  </object>

  <object id="Calculations" type="System.Collections.ArrayList" >
    <constructor-arg>
      <list>
        <object type="Collaboris.Saf.Tests.Support.Entities.Calculator">
          <property name="FirstNumber" value="1"/>
          <property name="SecondNumber" value="3"/>
          <property name="Result" value="#{Result1}"/>
        </object>
        <object type="Collaboris.Saf.Tests.Support.Entities.Calculator">
          <property name="FirstNumber" value="@{Result1}"/>
          <property name="SecondNumber" value="10"/>
          <property name="Result" value="#{Result2}"/>
        </object>
        <object type="Collaboris.Saf.Tests.Support.Entities.Calculator">
          <property name="FirstNumber" value="@{Result2}"/>
          <property name="SecondNumber" value="200"/>
          <property name="Result" value="#{Result3}"/>
        </object>
      </list>
    </constructor-arg>
  </object>
 
</objects>

